<?php

namespace app\company\model;

use app\common\model\BaseModel;

class Articles extends BaseModel
{
    protected $table = 'vk_article';
    public function category()
    {
        return $this->belongsTo(ArticleCategories::class,'article_category_id', 'id')->field('id, category_name, pid');
    }
}